package com.lijie.bs_recruit.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * <p>
 * 
 * </p>
 *
 * @author 李杰
 * @since 2021-03-16
 */
@TableName(value="resume ",resultMap = "resumeResultMap")
@ApiModel(value="Resume对象", description="")
public class Resume implements Serializable {



    @TableId(value = "userId")
    @ApiModelProperty(value = "用户id(外键)")
    private Integer userId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "生日")
    private Date birthdate;

    @ApiModelProperty(value = "电话")
    private String telephone;

    @ApiModelProperty(value = "最高学历")
    @TableField("maxDegree")
    private String maxDegree;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "掌握技能")
    private String skill;

    @ApiModelProperty(value = "自我评价")
    private String evaluation;

    @ApiModelProperty(value = "简历附件")
    private String resumefile;

    @ApiModelProperty(value = "是否公开")
    @TableField("isOpen")
    private Integer isOpen;

    @ApiModelProperty(value = "上次更新时间")
    @TableField("userUpdateTime")
    private Date userUpdateTime;

    @ApiModelProperty(value = "头像地址")
    @TableField("headerImg")
    private String headerImg;

    @ApiModelProperty(value = "工作经验")
    @TableField("workExp")
    private String workExp;

    @ApiModelProperty(value = "部门")
    @TableField("workExp")
    private String department;

    @ApiModelProperty(value = "职位描述")
    @TableField("workExp")
    private String workDescription;

    //一对多：一个简历对应多个教育经历

    private List<Education> educations;

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getWorkDescription() {
        return workDescription;
    }

    public void setWorkDescription(String workDescription) {
        this.workDescription = workDescription;
    }

    public String getWorkExp() {
        return workExp;
    }

    public void setWorkExp(String workExp) {
        this.workExp = workExp;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getUserUpdateTime() {
        return userUpdateTime;
    }

    public void setUserUpdateTime(Date userUpdateTime) {
        this.userUpdateTime = userUpdateTime;
    }


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getMaxDegree() {
        return maxDegree;
    }

    public void setMaxDegree(String maxDegree) {
        this.maxDegree = maxDegree;
    }



    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }

    public String getEvaluation() {
        return evaluation;
    }

    public void setEvaluation(String evaluation) {
        this.evaluation = evaluation;
    }

    public String getResumefile() {
        return resumefile;
    }

    public void setResumefile(String resumefile) {
        this.resumefile = resumefile;
    }

    public Integer getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
    }

    public List<Education> getEducations() {
        return educations;
    }

    public void setEducations(List<Education> educations) {
        this.educations = educations;
    }

    public String getHeaderImg() {
        return headerImg;
    }

    public void setHeaderImg(String headerImg) {
        this.headerImg = headerImg;
    }

    @Override
    public String toString() {
        return "Resume{" +
                "userId=" + userId +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthdate=" + birthdate +
                ", telephone='" + telephone + '\'' +
                ", maxDegree='" + maxDegree + '\'' +
                ", email='" + email + '\'' +
                ", skill='" + skill + '\'' +
                ", evaluation='" + evaluation + '\'' +
                ", resumefile='" + resumefile + '\'' +
                ", isOpen=" + isOpen +
                ", userUpdateTime=" + userUpdateTime +
                ", headerImg='" + headerImg + '\'' +
                ", workExp='" + workExp + '\'' +
                ", department='" + department + '\'' +
                ", workDescription='" + workDescription + '\'' +
                ", educations=" + educations +
                '}';
    }
}
